<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/selection.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('selection_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">selection.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="selection_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#ifndef SELECTION_H_</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#define SELECTION_H_</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;set&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="local_types_8h.html">pcl/apps/point_cloud_editor/localTypes.h</a>&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="statistics_8h.html">pcl/apps/point_cloud_editor/statistics.h</a>&gt;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_selection.html">   52</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_selection.html">Selection</a> : <span class="keyword">public</span> <a class="code" href="class_statistics.html">Statistics</a></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_selection.html#a7cea29161c8b000d65f12f7ce76a0eae">   58</a></span>&#160;    <a class="code" href="class_selection.html#a7cea29161c8b000d65f12f7ce76a0eae">Selection</a> (<a class="code" href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a> cloud_ptr, <span class="keywordtype">bool</span> register_stats=<span class="keyword">false</span>)</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      : <a class="code" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">cloud_ptr_</a>(cloud_ptr)</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;      <span class="keywordflow">if</span> (register_stats)</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="class_statistics.html#a600df203053cd270b328d95df6a46aa6">registerStats</a>();</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    }</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="class_selection.html#aa1c88c83410f8233d04cb5a3de3a9e9a">   67</a></span>&#160;    <a class="code" href="class_selection.html#aa1c88c83410f8233d04cb5a3de3a9e9a">Selection</a> (<span class="keyword">const</span> <a class="code" href="class_selection.html">Selection</a>&amp; copy)</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;      : <a class="code" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">cloud_ptr_</a>(copy.<a class="code" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">cloud_ptr_</a>), <a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>(copy.<a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>)</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    }</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_selection.html#a1860ec524d11c03de8c10a9354319839">   73</a></span>&#160;    <a class="code" href="class_selection.html#a1860ec524d11c03de8c10a9354319839">~Selection</a> ()</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="class_selection.html">Selection</a>&amp;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_selection.html#a841859b3c128ecba98979bae7af900e3">   81</a></span>&#160;    <a class="code" href="class_selection.html#a841859b3c128ecba98979bae7af900e3">operator= </a>(<span class="keyword">const</span> <a class="code" href="class_selection.html">Selection</a>&amp; selection);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_selection.html#a7b9ae84218e327e1c84712f2faa60656">   88</a></span>&#160;    <a class="code" href="class_selection.html#a7b9ae84218e327e1c84712f2faa60656">addIndex</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_selection.html#ad1754bba8e2346dd43c65758e488bc76">   93</a></span>&#160;    <a class="code" href="class_selection.html#ad1754bba8e2346dd43c65758e488bc76">removeIndex</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_selection.html#a29038f14cd7a3920f329f65f23591356">  100</a></span>&#160;    <a class="code" href="class_selection.html#a29038f14cd7a3920f329f65f23591356">addIndex</a> (<span class="keyword">const</span> <a class="code" href="local_types_8h.html#a3c85da681fbf37b420b89c56681cdfe7">IndexVector</a> &amp;indices);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="class_selection.html#a2c20171319eedf6b00a5a72ae62b80fc">  106</a></span>&#160;    <a class="code" href="class_selection.html#a2c20171319eedf6b00a5a72ae62b80fc">removeIndex</a> (<span class="keyword">const</span> <a class="code" href="local_types_8h.html#a3c85da681fbf37b420b89c56681cdfe7">IndexVector</a> &amp;indices);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_selection.html#aee1da520788097ec071b6028f6520ea8">  114</a></span>&#160;    <a class="code" href="class_selection.html#aee1da520788097ec071b6028f6520ea8">addIndexRange</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> start, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> num);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="class_selection.html#aba0dfdf0990f170d54f1012932b75d90">  120</a></span>&#160;    <a class="code" href="class_selection.html#aba0dfdf0990f170d54f1012932b75d90">removeIndexRange</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> start, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> num);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="class_selection.html#a42c62cee4f889ef466446b408054ea19">  124</a></span>&#160;    <a class="code" href="class_selection.html#a42c62cee4f889ef466446b408054ea19">clear</a> ()</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    {</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;      <a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>.clear();</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keyword">typedef</span> std::set&lt;unsigned int&gt;::iterator iterator;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keyword">typedef</span> std::set&lt;unsigned int&gt;::const_iterator const_iterator;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    const_iterator</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="class_selection.html#af004bfc40081da2fa203374ed1e2f668">  134</a></span>&#160;    <a class="code" href="class_selection.html#af004bfc40081da2fa203374ed1e2f668">begin</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;      <span class="keywordflow">return</span> (<a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>.begin());</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    const_iterator</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_selection.html#a9dbd178663ae6ea07ca445bea9cd255e">  141</a></span>&#160;    <a class="code" href="class_selection.html#a9dbd178663ae6ea07ca445bea9cd255e">end</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;      <span class="keywordflow">return</span> (<a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>.end());</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    }</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keyword">typedef</span> std::set&lt;unsigned int&gt;::const_reverse_iterator</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;      const_reverse_iterator;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    const_reverse_iterator</div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_selection.html#ac79349e5e3da829b76424a532864f2e1">  151</a></span>&#160;    <a class="code" href="class_selection.html#ac79349e5e3da829b76424a532864f2e1">rbegin</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;      <span class="keywordflow">return</span> (<a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>.rbegin());</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    }</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    const_reverse_iterator</div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_selection.html#acb402f4401ff784957cc33602e5532cf">  158</a></span>&#160;    <a class="code" href="class_selection.html#acb402f4401ff784957cc33602e5532cf">rend</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;      <span class="keywordflow">return</span> (<a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>.rend());</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    }</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="class_selection.html#aeb4dc29169477cc1698620c45f18ffe4">  165</a></span>&#160;    <a class="code" href="class_selection.html#aeb4dc29169477cc1698620c45f18ffe4">isSelected</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keyword">inline</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="class_selection.html#acc50ca3fd1ef37445289c0e32469f0df">  170</a></span>&#160;    <a class="code" href="class_selection.html#acc50ca3fd1ef37445289c0e32469f0df">empty</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;      <span class="keywordflow">return</span> (<a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>.empty());</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keyword">inline</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="class_selection.html#a5ed4b4a8d20c8e8a94162efad6779d15">  178</a></span>&#160;    <a class="code" href="class_selection.html#a5ed4b4a8d20c8e8a94162efad6779d15">size</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;      <span class="keywordflow">return</span> (<a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>.size());</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    }</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="class_selection.html#a495fe7abf1c2022ee0a196692cd28734">  187</a></span>&#160;    <a class="code" href="class_selection.html#a495fe7abf1c2022ee0a196692cd28734">invertSelect</a> ();</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    std::string</div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="class_selection.html#a0a4ad387d6f6b3897544453ff477b030">  191</a></span>&#160;    <a class="code" href="class_selection.html#a0a4ad387d6f6b3897544453ff477b030">getStat</a> () <span class="keyword">const</span>;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="class_selection.html#a53d1bd270d6d257d34d5bc8d50028049">  195</a></span>&#160;    <a class="code" href="class_selection.html#a53d1bd270d6d257d34d5bc8d50028049">Selection</a> ()</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    {</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">  200</a></span>&#160;    <a class="code" href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a> <a class="code" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">cloud_ptr_</a>;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">  203</a></span>&#160;    std::set&lt;unsigned int&gt; <a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;};</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// SELECTION_H_</span></div>
<div class="ttc" id="aclass_selection_html"><div class="ttname"><a href="class_selection.html">Selection</a></div><div class="ttdoc">This class serves as a sort of mask for performing operations on a point cloud. It keeps track of the...</div><div class="ttdef"><b>Definition:</b> selection.h:53</div></div>
<div class="ttc" id="aclass_selection_html_a0a4ad387d6f6b3897544453ff477b030"><div class="ttname"><a href="class_selection.html#a0a4ad387d6f6b3897544453ff477b030">Selection::getStat</a></div><div class="ttdeci">std::string getStat() const</div><div class="ttdoc">Get the statistics of the selected points in string.</div></div>
<div class="ttc" id="aclass_selection_html_a16da878e38646f730a4d40f7f4ba73ac"><div class="ttname"><a href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">Selection::cloud_ptr_</a></div><div class="ttdeci">ConstCloudPtr cloud_ptr_</div><div class="ttdoc">a pointer to the cloud</div><div class="ttdef"><b>Definition:</b> selection.h:200</div></div>
<div class="ttc" id="aclass_selection_html_a1860ec524d11c03de8c10a9354319839"><div class="ttname"><a href="class_selection.html#a1860ec524d11c03de8c10a9354319839">Selection::~Selection</a></div><div class="ttdeci">~Selection()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> selection.h:73</div></div>
<div class="ttc" id="aclass_selection_html_a29038f14cd7a3920f329f65f23591356"><div class="ttname"><a href="class_selection.html#a29038f14cd7a3920f329f65f23591356">Selection::addIndex</a></div><div class="ttdeci">void addIndex(const IndexVector &amp;indices)</div><div class="ttdoc">Adds a vector of indices of the selected points to the table.</div></div>
<div class="ttc" id="aclass_selection_html_a2c20171319eedf6b00a5a72ae62b80fc"><div class="ttname"><a href="class_selection.html#a2c20171319eedf6b00a5a72ae62b80fc">Selection::removeIndex</a></div><div class="ttdeci">void removeIndex(const IndexVector &amp;indices)</div><div class="ttdoc">Removes a vector of indices from the table</div></div>
<div class="ttc" id="aclass_selection_html_a42c62cee4f889ef466446b408054ea19"><div class="ttname"><a href="class_selection.html#a42c62cee4f889ef466446b408054ea19">Selection::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Removes all the indices from the selection table.</div><div class="ttdef"><b>Definition:</b> selection.h:124</div></div>
<div class="ttc" id="aclass_selection_html_a495fe7abf1c2022ee0a196692cd28734"><div class="ttname"><a href="class_selection.html#a495fe7abf1c2022ee0a196692cd28734">Selection::invertSelect</a></div><div class="ttdeci">void invertSelect()</div><div class="ttdoc">Invert selection</div></div>
<div class="ttc" id="aclass_selection_html_a53d1bd270d6d257d34d5bc8d50028049"><div class="ttname"><a href="class_selection.html#a53d1bd270d6d257d34d5bc8d50028049">Selection::Selection</a></div><div class="ttdeci">Selection()</div><div class="ttdoc">Default constructor - object is not default constructable</div><div class="ttdef"><b>Definition:</b> selection.h:195</div></div>
<div class="ttc" id="aclass_selection_html_a5ed4b4a8d20c8e8a94162efad6779d15"><div class="ttname"><a href="class_selection.html#a5ed4b4a8d20c8e8a94162efad6779d15">Selection::size</a></div><div class="ttdeci">unsigned int size() const</div><div class="ttdoc">Returns the number of points in the selection</div><div class="ttdef"><b>Definition:</b> selection.h:178</div></div>
<div class="ttc" id="aclass_selection_html_a7b9ae84218e327e1c84712f2faa60656"><div class="ttname"><a href="class_selection.html#a7b9ae84218e327e1c84712f2faa60656">Selection::addIndex</a></div><div class="ttdeci">void addIndex(unsigned int index)</div><div class="ttdoc">Adds the index of the selected point to the selection table.</div></div>
<div class="ttc" id="aclass_selection_html_a7cea29161c8b000d65f12f7ce76a0eae"><div class="ttname"><a href="class_selection.html#a7cea29161c8b000d65f12f7ce76a0eae">Selection::Selection</a></div><div class="ttdeci">Selection(ConstCloudPtr cloud_ptr, bool register_stats=false)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> selection.h:58</div></div>
<div class="ttc" id="aclass_selection_html_a841859b3c128ecba98979bae7af900e3"><div class="ttname"><a href="class_selection.html#a841859b3c128ecba98979bae7af900e3">Selection::operator=</a></div><div class="ttdeci">Selection &amp; operator=(const Selection &amp;selection)</div><div class="ttdoc">Equal operator</div></div>
<div class="ttc" id="aclass_selection_html_a9dbd178663ae6ea07ca445bea9cd255e"><div class="ttname"><a href="class_selection.html#a9dbd178663ae6ea07ca445bea9cd255e">Selection::end</a></div><div class="ttdeci">const_iterator end() const</div><div class="ttdoc">Get the end iterator of the selection.</div><div class="ttdef"><b>Definition:</b> selection.h:141</div></div>
<div class="ttc" id="aclass_selection_html_aa1c88c83410f8233d04cb5a3de3a9e9a"><div class="ttname"><a href="class_selection.html#aa1c88c83410f8233d04cb5a3de3a9e9a">Selection::Selection</a></div><div class="ttdeci">Selection(const Selection &amp;copy)</div><div class="ttdoc">Copy constructor</div><div class="ttdef"><b>Definition:</b> selection.h:67</div></div>
<div class="ttc" id="aclass_selection_html_aba0dfdf0990f170d54f1012932b75d90"><div class="ttname"><a href="class_selection.html#aba0dfdf0990f170d54f1012932b75d90">Selection::removeIndexRange</a></div><div class="ttdeci">void removeIndexRange(unsigned int start, unsigned int num)</div><div class="ttdoc">Removes a range of consecutive indices into the selection table.</div></div>
<div class="ttc" id="aclass_selection_html_ac3b10912aa42bc8b2e965234634e21e0"><div class="ttname"><a href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">Selection::selected_indices_</a></div><div class="ttdeci">std::set&lt; unsigned int &gt; selected_indices_</div><div class="ttdoc">A set of unique indices that have been selected in the cloud.</div><div class="ttdef"><b>Definition:</b> selection.h:203</div></div>
<div class="ttc" id="aclass_selection_html_ac79349e5e3da829b76424a532864f2e1"><div class="ttname"><a href="class_selection.html#ac79349e5e3da829b76424a532864f2e1">Selection::rbegin</a></div><div class="ttdeci">const_reverse_iterator rbegin() const</div><div class="ttdoc">Get the begin iterator of the selection.</div><div class="ttdef"><b>Definition:</b> selection.h:151</div></div>
<div class="ttc" id="aclass_selection_html_acb402f4401ff784957cc33602e5532cf"><div class="ttname"><a href="class_selection.html#acb402f4401ff784957cc33602e5532cf">Selection::rend</a></div><div class="ttdeci">const_reverse_iterator rend() const</div><div class="ttdoc">Get the end iterator of the selection.</div><div class="ttdef"><b>Definition:</b> selection.h:158</div></div>
<div class="ttc" id="aclass_selection_html_acc50ca3fd1ef37445289c0e32469f0df"><div class="ttname"><a href="class_selection.html#acc50ca3fd1ef37445289c0e32469f0df">Selection::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Returns true if no point is selected.</div><div class="ttdef"><b>Definition:</b> selection.h:170</div></div>
<div class="ttc" id="aclass_selection_html_ad1754bba8e2346dd43c65758e488bc76"><div class="ttname"><a href="class_selection.html#ad1754bba8e2346dd43c65758e488bc76">Selection::removeIndex</a></div><div class="ttdeci">void removeIndex(unsigned int index)</div><div class="ttdoc">Removes the index of a point from the selection table.</div></div>
<div class="ttc" id="aclass_selection_html_aeb4dc29169477cc1698620c45f18ffe4"><div class="ttname"><a href="class_selection.html#aeb4dc29169477cc1698620c45f18ffe4">Selection::isSelected</a></div><div class="ttdeci">bool isSelected(unsigned int index) const</div><div class="ttdoc">Returns true if the passed index is selected.</div></div>
<div class="ttc" id="aclass_selection_html_aee1da520788097ec071b6028f6520ea8"><div class="ttname"><a href="class_selection.html#aee1da520788097ec071b6028f6520ea8">Selection::addIndexRange</a></div><div class="ttdeci">void addIndexRange(unsigned int start, unsigned int num)</div><div class="ttdoc">Adds a range of consecutive indices into the selection table.</div></div>
<div class="ttc" id="aclass_selection_html_af004bfc40081da2fa203374ed1e2f668"><div class="ttname"><a href="class_selection.html#af004bfc40081da2fa203374ed1e2f668">Selection::begin</a></div><div class="ttdeci">const_iterator begin() const</div><div class="ttdoc">Get the begin iterator of the selection.</div><div class="ttdef"><b>Definition:</b> selection.h:134</div></div>
<div class="ttc" id="aclass_statistics_html"><div class="ttname"><a href="class_statistics.html">Statistics</a></div><div class="ttdef"><b>Definition:</b> statistics.h:49</div></div>
<div class="ttc" id="aclass_statistics_html_a600df203053cd270b328d95df6a46aa6"><div class="ttname"><a href="class_statistics.html#a600df203053cd270b328d95df6a46aa6">Statistics::registerStats</a></div><div class="ttdeci">void registerStats()</div><div class="ttdoc">Register a statistics</div></div>
<div class="ttc" id="alocal_types_8h_html"><div class="ttname"><a href="local_types_8h.html">localTypes.h</a></div></div>
<div class="ttc" id="alocal_types_8h_html_a3c85da681fbf37b420b89c56681cdfe7"><div class="ttname"><a href="local_types_8h.html#a3c85da681fbf37b420b89c56681cdfe7">IndexVector</a></div><div class="ttdeci">std::vector&lt; unsigned int &gt; IndexVector</div><div class="ttdoc">The type used for vectors holding the indices of points in a cloud</div><div class="ttdef"><b>Definition:</b> localTypes.h:96</div></div>
<div class="ttc" id="alocal_types_8h_html_aad5f0c82cf4c260ee8aac89a5cb65808"><div class="ttname"><a href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a></div><div class="ttdeci">boost::shared_ptr&lt; const Cloud &gt; ConstCloudPtr</div><div class="ttdef"><b>Definition:</b> localTypes.h:76</div></div>
<div class="ttc" id="astatistics_8h_html"><div class="ttname"><a href="statistics_8h.html">statistics.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_b812044310263d1df0acdcc34fa78063.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="dir_e7676f72fdf944a58a9890202aea4fdd.html">include</a></li><li class="navelem"><a class="el" href="dir_f36a0c0a6789487b19709622e8aaedff.html">pcl</a></li><li class="navelem"><a class="el" href="dir_dfd6ef21606ddfa5cd0b7ee0903ae9ec.html">apps</a></li><li class="navelem"><a class="el" href="dir_4eea226eade4b66d41c153c54681c108.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="selection_8h.html">selection.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
